package ihm;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.JComponent;

/**
 * Image de fond de la JFrame.
 * 
 * @author follignequ
 * 
 */
public class FrameBackGround extends JComponent {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Image i;

	// Creating Constructer
	public FrameBackGround(Image i) {
		this.i = i;

	}

	// Overriding the paintComponent method
	@Override
	public void paintComponent(Graphics g) {

		g.drawImage(i, 0, 0, null); // Drawing image using drawImage method

	}

}
